package com.xcc.eureka;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;

import java.util.Arrays;

/**
 * @author frosty
 * @description
 * @date 2019-11-15 15:15:21
 */

@EnableEurekaServer  /*这个是要扫描到redisUtil redisTemplate组件*/
//@ComponentScan(basePackages = {"com.xcc.common"})
/*这个注解必须要  不然 无法扫到*/
//@MapperScan(basePackages = {"com.xcc.common.domain.mapper"})
@SpringBootApplication
public class EurekaApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaApplication.class,args);
    }

}
